
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>系统管理员 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid">
<div class="layui-row layui-col-space15">
<div class="layui-col-md12">
<div class="layui-card">
<div class="layui-tab layui-tab-brief" lay-filter="component-tabs-hash">
<ul class="layui-tab-title">
<li class="layui-this" lay-id="11">为静态设置</li>
</ul>
<div class="layui-tab-content" >
<div class="layui-tab-item layui-show">
<form class="layui-form" action="">
<div class="layui-form-item">
<label  class="layui-form-label">是否开启为静态</label>
<div class="layui-input-block">
<input type="radio" name="switch" value="0" title="关闭" <?php echo bs_lib::get_configs_value('seo', 'switch')==0?"checked":""; ?>>
<input type="radio" name="switch" value="1" title="开启" <?php echo bs_lib::get_configs_value('seo', 'switch')==1?"checked":""; ?> >
</div>
<div class="layui-form-mid layui-word-aux">开启为静态首页进不去就是需要配置为静态规则</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">导航栏目</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="list"  value="<?php echo bs_lib::get_configs_value('seo', 'list') ?>"   placeholder="list"  class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">默认:list</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">新闻前缀</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="news"  value="<?php echo bs_lib::get_configs_value('seo', 'news') ?>"   placeholder="news"  class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">默认:news</div>
</div>
<div class="layui-form-item" >
<label class="layui-form-label">产品前缀</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="product"  value="<?php echo bs_lib::get_configs_value('seo', 'product') ?>"   placeholder="product"  class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">默认:product</div>
</div>
<div class="layui-form-item" >
<label class="layui-form-label">相册前缀</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="picture"  value="<?php echo bs_lib::get_configs_value('seo', 'picture') ?>"   placeholder="picture"  class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">默认:picture</div>
</div>
<div class="layui-form-item" >
<label class="layui-form-label">下载前缀</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="download"  value="<?php echo bs_lib::get_configs_value('seo', 'download') ?>"   placeholder="download"  class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">默认:download</div>
</div>
<div class="layui-form-item" >
<label class="layui-form-label">单页前缀</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="page"  value="<?php echo bs_lib::get_configs_value('seo', 'page') ?>"   placeholder="page"  class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux">默认:page</div>
</div>
<input type="hidden" name="set_name"  value="seo"     class="layui-input">
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="setup">保存配置</button>
</div>
</div>
</form>
</div>
<br/>  <br/>  <br/>  <br/>  <br/>
<div class="layui-form-item" >
<label class="layui-form-label">Nginx为静态</label>
<div class="layui-input-inline" style="width: 300px;">
<textarea style="width: 500px;height: 100px;"  class="layui-input"><?php
echo '';
echo 'location '.getroomdir().'/ {';
echo "\n";
echo '  if (!-e $request_filename){';
echo "\n";
echo '     rewrite ^'.getroomdir().'/(.*)$ '.getroomdir().'/index.php/$1 last;';
echo "\n";
echo '   ';
echo '   }';
echo "\n";
echo '}';
?></textarea>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
</div>
</div>
<style>.logos{width: 200px;height: 65px;border: #EEEEEE;border-style: solid;border-width: 1px;}</style>
</div>
</div>
</div>
</div>
<?php adminechohtnl(); ?>
<div id="foot">Copyright © 2019-2023 <a href="https://www.HDSysCms.Com?pro" target="_blank">HDSysCms <?php echo HDSYS_VERSION; ?></a>   <br>
All Rights Reserved </div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use([ 'form','layer','element','upload'], function(){var admin=layui.admin, $=layui.$, form=layui.form,element=layui.element,upload=layui.upload,router=layui.router();element.render();var layid=router.hash.replace(/^#layid=/, '');layid && element.tabChange('component-tabs-hash', layid);element.on('tab(component-tabs-hash)', function(elem){location.hash='/'+ layui.router().path.join('/') + '#layid=' + $(this).attr('lay-id');});form.on('submit(setup)', function (data) {data=data.field;$.ajax({type:  "post",url: 'index.php?m=manage&c=Seo&a=static_ajax',data :data,dataType: "json",success: function(ret){layer.msg(ret.msg);if(ret.code==1){}}});return false;});});</script>
</body>
</html>
